package com.itheima.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.mapper.DemoMapper;
import com.itheima.pojo.User;
import com.itheima.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(interfaceClass = DemoService.class)
public class DemoServiceImpl implements DemoService {
    @Autowired
    private DemoMapper demoMapper;
    @Override
    public List<User> run() {
       return demoMapper.run();
    }
}
